package com.design.pattern.prototype;

import java.util.Date;

/**
 * @Description 原型模式->模拟求职简历
 * @author ll
 * @createTime 2021/6/3  0:15 
 */
public class Main {

	public static void main(String[] args) throws CloneNotSupportedException {
		Resume resume1 = new Resume("张三",21);
		resume1.setWorkInfo(new Date(),new Date(),"阿里巴巴");

		Resume resume2 = (Resume)resume1.clone();
		resume2.setName("李四");
		resume2.setWorkInfo(new Date(),new Date(),"腾讯");

		resume1.showInfo();
		resume2.showInfo();
	}
}
